package com.kgis.fm.business.drawfeature {
    import com.kgis.map.Map;
    import com.kgis.map.handler.feature.draw.DrawHandler;
//    import com.kgis.fm.flex.model.business.Entity;

    import flash.events.EventDispatcher;

    import mx.collections.ArrayCollection;

    /**
     * @author zhxiaomiao
     * */
    public class AbstractDrawFeature extends EventDispatcher implements IDrawFeature {

        protected var _map:Map;
        protected var _drawHandler:DrawHandler;
        protected var snapFeatures:ArrayCollection;
        protected var entity:*;

        public function AbstractDrawFeature(entity:* = null) {
            this.entity = entity;
        }

        public function get map():Map {
            return this._map;
        }

        public function set map(value:Map):void {
            this._map = value;
        }

        public function get drawHandler():DrawHandler {
            return this._drawHandler;
        }

        public function set drawHandler(value:DrawHandler):void {
            this._drawHandler = value;
        }

        /**
         *override this function to implement you own demand
         * */
        public function draw():void {

        }

        public function drawEnd():void {

        }
    }
}